package com.vehicle_information_management_system.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.vehicle_information_management_system.dto.EmployeeCount;
import com.vehicle_information_management_system.pojo.DriverInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author huawei
* @description 针对表【driver_info】的数据库操作Mapper
* @createDate 2025-02-16 11:47:13
* @Entity com.vehicle_information_management_system.pojo.DriverInfo
*/
public interface DriverInfoMapper extends BaseMapper<DriverInfo> {

    IPage<DriverInfo> getDriverInfoWithDepartment(Page<DriverInfo> page, @Param("ew") QueryWrapper<DriverInfo> queryWrapper);

    void updateDriverInfo(DriverInfo driverInfo);

    List<EmployeeCount> getDriverInfoByDepartment();

    List<EmployeeCount> getEmployeeCountByAge();
}




